// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   UserContext.java

package com.vandagroup.common.bo;

import java.util.HashMap;

// Referenced classes of package com.vandagroup.common.bo:
//            ESSObject, User

public class UserContext extends ESSObject
    implements User
{

    public String custID;
    public String context;
    public String oldContext;
    private String loginID;
    private String operID;
    private String operName;
    private String orgID;
    private String orgName;
    private String role[][];
    private String deptID;
    private String deptName;
    private String custLoginID;
    private boolean custLoginStatus;
    private boolean hostLoginStatus;
    private String operType;
    private String loginType;
    private String pwd;
    private HashMap map;

    public UserContext()
    {
        context = null;
        oldContext = null;
        loginID = null;
        map = new HashMap();
    }

    public void setContext(String context)
    {
        oldContext = this.context;
        this.context = context;
    }

    public void restoreContext()
    {
        context = oldContext;
        oldContext = null;
    }

    public void setAttribute(String name, Object obj)
    {
        map.put(name, obj);
    }

    public Object getAttribute(String name)
    {
        return map.get(name);
    }

    public String getContext()
    {
        return context;
    }

    public String getOldContext()
    {
        return oldContext;
    }

    public String getOperID()
    {
        return operID;
    }

    public String getOperName()
    {
        return operName;
    }

    public String getOrgID()
    {
        return orgID;
    }

    public String getOrgName()
    {
        return orgName;
    }

    public void setOldContext(String oldContext)
    {
        this.oldContext = oldContext;
    }

    public void setOperID(String operID)
    {
        this.operID = operID;
    }

    public void setOperName(String operName)
    {
        this.operName = operName;
    }

    public void setOrgID(String orgID)
    {
        this.orgID = orgID;
    }

    public void setOrgName(String orgName)
    {
        this.orgName = orgName;
    }

    public String getDeptID()
    {
        return deptID;
    }

    public String getDeptName()
    {
        return deptName;
    }

    public String[][] getRole()
    {
        return role;
    }

    public void setDeptID(String deptID)
    {
        this.deptID = deptID;
    }

    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public void setRole(String role[][])
    {
        this.role = role;
    }

    public String getCustLoginID()
    {
        return custLoginID;
    }

    public void setCustLoginID(String custLoginID)
    {
        this.custLoginID = custLoginID;
        setCustLoginStatus(true);
    }

    public boolean isCustLogin()
    {
        return custLoginStatus;
    }

    public void setCustLoginStatus(boolean custLoginStatus)
    {
        this.custLoginStatus = custLoginStatus;
        if(!custLoginStatus)
            custLoginID = null;
    }

    public boolean isHostLoginStatus()
    {
        return hostLoginStatus;
    }

    public void setHostLoginStatus(boolean hostLoginStatus)
    {
        this.hostLoginStatus = hostLoginStatus;
    }

    public String getOperType()
    {
        return operType;
    }

    public void setOperType(String operType)
    {
        this.operType = operType;
    }

    public String getLoginID()
    {
        return loginID;
    }

    public void setLoginID(String loginID)
    {
        this.loginID = loginID;
    }

    public void setLoginType(String loginType)
    {
        this.loginType = loginType;
    }

    public String getLoginType()
    {
        return loginType;
    }

    public String getPwd()
    {
        return pwd;
    }

    public void setPwd(String pwd)
    {
        this.pwd = pwd;
    }

    public String getCustID()
    {
        return custID;
    }

    public void setCustID(String custID)
    {
        this.custID = custID;
    }
}
